package top.scauwlt.compress;

import top.scauwlt.extension.SPI;

/**
 * @Author wmm
 * @Date 2022/7/23 20:18
 */
@SPI
public interface Compress {
    /**
     * 压缩
     * @param bytes
     * @return
     */
    byte[] compress(byte[] bytes);

    /**
     * 解压缩
     * @param bytes
     * @return
     */
    byte[] decompress(byte[] bytes);
}
